<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		 * {
		 	margin: 0;
		 	padding: 0;
		 }

		.box {
			 width: 300px;
			 height: 300px;
			 border: 20px dashed red;
			 padding: 20px;
			 margin: 50px auto;
			 background: url(1.png);
			 background-clip: content-box;
			 background-clip: padding-box;
			 background-clip: border-box;
		}
	</style>
</head>
<body>
	
		<div class="box"></div>
</body>
</html>